#!/usr/bin/env python

from google.appengine.ext import db
from google.appengine.tools import bulkloader

#from db_weather_yahoo import DbWeatherYahoo
import db_city

class CityLoader(bulkloader.Loader):
  def __init__(self):
    bulkloader.Loader.__init__(self, 'DbCity',
                               [('name', lambda x: unicode(x, 'utf-8')),
                                ('woeid_weather', str),
                                ('idx', int),
                               ])

loaders = [CityLoader]